package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户关联主播业务对象 dy_client_anchor
 *
 * @author ruoyi
 * @date 2024-08-02
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class DyClientAnchorBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * code token
     */
    private String token;
    /**
     * 购买类型(0主播，1相册)
     */
    private Integer buyType;
    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long clientId;

    /**
     * 用户名称
     */
    @NotBlank(message = "用户名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String realName;

    /**
     * 主播id
     */
    @NotNull(message = "主播id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long anchorId;

    /**
     * 主播名称
     */
    @NotBlank(message = "主播名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String anchorName;

    /**
     * 主播相册id
     */
    @NotNull(message = "主播相册id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long anchorPhotoId;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String des;

    /**
     * 最新更新时间
     */
    private Date newestTime;

    /**
     * 商品id
     */
    private Long goodsId;

    /**
     * 支付类型(0微信， 1支付宝, 2汇付支付宝，3汇付微信)
     */
    private Long payType;

    /**
     * openId
     */
    private String openId;


}
